﻿package Message.Public
{
    import Framework.MQ.*;
    import Framework.Serialize.*;

    public class SDropRoulette extends IMessageBase
    {
        public var wave:int;
        public var giftBagCode:int;
        public var rewardCode:int;
        public var amount:int;
        public var giftBagUid:String;
        public const _type:int = 204;
        public static var _regist:SDropRoulette = new SDropRoulette(true);

        public function SDropRoulette(param1:Boolean = false)
        {
            if (param1)
            {
                MessageManager.instance().regist(this);
            }
            return;
        }// end function

        override public function getType() : int
        {
            return this._type;
        }// end function

        override public function clone() : IMessageBase
        {
            return new SDropRoulette();
        }// end function

        override public function __write(param1:SerializeStream) : void
        {
            param1.writeInt(this.wave);
            param1.writeInt(this.giftBagCode);
            param1.writeInt(this.rewardCode);
            param1.writeInt(this.amount);
            param1.writeString(this.giftBagUid);
            return;
        }// end function

        override public function __read(param1:SerializeStream) : void
        {
            this.wave = param1.readInt();
            this.giftBagCode = param1.readInt();
            this.rewardCode = param1.readInt();
            this.amount = param1.readInt();
            this.giftBagUid = param1.readString();
            return;
        }// end function

    }
}
